package com.oot2d.util;

public class Timer {
    public long duration;

    public Timer(long d)
    {
        duration = d;
    }

    public void update(int d)
    {
        duration -= d;
        if (duration < 0)
            duration = 0;
    }

    public boolean isDone()
    {
        return (duration == 0);
    }
}
